<!--# layout("/common/layout.html",{"jsBase":"/js/cms/site/"}){ -->

<form class="layui-form" id="updateForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">批准站文号</label>
				<div class="layui-input-inline">
					<input type="text" id="approvalNumber" readonly name="approvalNumber"  value="${site.approvalNumber}"   class="layui-input" >
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">博士后工作站（创新实践基地）名称</label>
				<div class="layui-input-inline">
					<input type="text" id="workstationName" name="workstationName"  value="${site.workstationName}"   class="layui-input" >
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">建站时间</label>
				<div class="layui-input-inline">
					<input type="text" id="timeConstruction" name="timeConstruction"  value="${site.timeConstruction,"yyyy-MM-dd"}"   class="layui-input input-date" >
				</div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">修改时间</label>
                <div class="layui-input-inline">
                    <input type="text" id="timeUpdate" readonly name="timeUpdate"  value=""   class="layui-input input-readonly" >
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">修改人</label>
                <div class="layui-input-inline">
                    <input type="text" id="modifier" readonly name="modifier"  value="${name}"   class="layui-input" >
                </div>
            </div>
        </div>
    </div>
	<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
    <input type="hidden" name="id" value=${site.id} />
    <layui:submitButtons id="updateButton" />
</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
    var siteEdit = layui.edit
    siteEdit.init();
});
window.onload = function() {
    var date=new Date();
    var year = date.getFullYear(); //获取年
    var month = date.getMonth()+1;//获取月
    var day = date.getDate(); //获取当日
    var time = year+"-"+month+"-"+day; //组合时间   alert("当前日期："+time);
    $("#timeUpdate").val(time);
};
</script>
